package command


type tLineCmd struct {
	x0 int
	y0 int
	x1 int
	y1 int
}

func NewLineCmd(x0 int, y0 int, x1 int, y1 int) IDrawCommand {
	return &tLineCmd{
		x0, y0, x1, y1,
	}
}

func (me *tLineCmd) Draw(g IGraphics) {
	g.DrawLine(me.x0, me.y0, me.x1, me.y1)
}